<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="f" %>
<%@ include file="prelude.jsp" %>

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title><c:out value="${forumName}"/></title>
    <link type="text/css" rel="stylesheet" href='<c:out value="${forumPath}"/>base.css'>
    <c:if test="${not empty user_id}">
      <script type="text/javascript" language="javascript"
          src="/com.bardsoftware.foronuvolo.DiscussionsView/com.bardsoftware.foronuvolo.DiscussionsView.nocache.js"></script>
    </c:if>
  </head>
<body id=root>
<c:if test="${empty user_id}">
  <c:set var="onFirstTimeLoad" scope="request" value="renderButton();"/>
</c:if>
<c:import url="fconnect_init.jsp"/>
<div id=body>

<c:import url="page_header.jsp"/>
<div id=content>
  <div id=sidebar>
    <div class="sidebaritem">
      <jsp:include page="format_menu.jsp"/>
    </div>
<br>
<br>
    <div class="sidebaritem">
      <div class="sidebarheader roundtop"><f:message key='youAre'/></div>
      <div class="sidebarcontent">
        <c:set var="nickname" scope="request" value="${nickname}"/>
        <c:set var="user_id" scope="request" value="${user_id}"/>
        <jsp:include page="format_personal_info.jsp"/>
      </div>
    </div>
    <div class=sep>&nbsp;</div>
  </div>

  <div class=main_content>
  <div class=comment_header><f:message key='newDiscussion_header'/></div>
    <c:if test="${empty user_id}">
      <f:message key='newDiscussion_anonymous'/>
    </c:if>
    <c:if test="${not empty user_id}">
        <div class=editor_hints>
        <f:message key='newDiscussion_hints'/>
        </div>
        <div id="preview" style="display: none">
        </div>
        <div class=editor id="new_message_input">
        </div>
        <div id="send_button"></div>
        <div id="err_notifier">Server error. Try again in a few seconds.</div>
    </c:if>
  </div>
</div>  <!-- content -->
</div>  <!-- body -->
</body>
</html>